
//百度地图转腾讯地图坐标
export function bd09ToGcj02(bd_lon, bd_lat) {
    var x_pi = (Math.PI * 3000.0) / 180.0;
    var x = bd_lon - 0.0065;
    var y = bd_lat - 0.006;
    var z = Math.sqrt(x * x + y * y) - 0.00002 * Math.sin(y * x_pi);
    var theta = Math.atan2(y, x) - 0.000003 * Math.cos(x * x_pi);
    var gcj_lon = z * Math.cos(theta);
    var gcj_lat = z * Math.sin(theta);
    return [gcj_lon, gcj_lat];
}